﻿namespace CommonAdmin.Web.Models
{
    public class ResultViewModel
    {
        /// <summary>
        /// 代码
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string msg { get; set; }        
        /// <summary>
        /// 任何类型的数据值
        /// </summary>
        public object data { get; set; }
        /// <summary>
        /// 返回数据长度，分页时需要
        /// </summary>
        public int rows { get; set; }
    }
    /// <summary>
    /// code的枚举
    /// </summary>
    public enum CodeEnum
    {
        请求成功 = 200,
        页面不存在 = 404,
        内部错误 = 500,
        请求失败=700,
    }
}
